<?php
require_once('user.php');
function mountMenu()
{
    global $page;
    $usersSubmit    =  new button('userSubmit',  'Usuários', 'ajaxCallpageForm(\'divContent\', \'mountUserForm\')','columnTitle');
    $usersSubmit    -> setBounds(20,20,100,30);
    $newsSubmit     =  new button('newsSubmit',  'Notícias', 'ajaxCallpageForm(\'divContent\', \'mountNewsForm\')','columnTitle');
    $newsSubmit     -> setBounds(140,20,100,30);
    $photoSubmit    =  new button("photoSubmit", "Fotos", 'ajaxCallpageForm(\'divContent\', \'mountPhotoForm\')','columnTitle');
    $photoSubmit    -> setBounds(260,20,100,30);
    $exitSubmit     =  new button("sair", "Sair", 'ajaxCallpageForm(\'divContent\', \'logout\')','columnTitle');
    $exitSubmit     -> setBounds(380,20,100,30);
    $divSubmits     = new div('divSubmits', array($usersSubmit, $newsSubmit, $photoSubmit, $exitSubmit ));
    put(array($divSubmits, new Div('divContent') ) );
    
}

function mountUserForm()
{
    $script = new Script('ajaxCallpageForm(\'divContent\', \'userForm\')');
    put($script);
}

function mountNewsForm()
{
    echo 'mountNewsForm';
}

function mountPhotoForm()
{
    echo 'mounPhotoForm';
}

?>
